home *** CD-ROM | disk | FTP | other *** search
/ ...taking it to the Macs! / ...taking it to the Macs!.iso / Extras / ActiveX Mac SDK / ActiveX SDK / Control Common / CConnectionPoint.h < prev    next >
Text File  |  1996-09-20  |  1KB  |  29 lines

  1. class CConnectionPoint : public IConnectionPoint
  2. {
  3. public:
  4.     // Constructors/Destructors
  5.     CConnectionPoint(void* Owner, IID InterfaceID);
  6.     ~CConnectionPoint(void);
  7.     
  8.     //  *** IUnknown methods ***
  9.     STDMETHOD(QueryInterface)(REFIID RefID, void** Obj);
  10.     STDMETHOD_(ULONG, AddRef)(void);
  11.     STDMETHOD_(ULONG, Release)(void);
  12.  
  13.         // IConnectionPoint methods
  14.     STDMETHOD(GetConnectionInterface)(THIS_ IID* InterfaceID) ;
  15.     STDMETHOD(GetConnectionPointContainer)(THIS_
  16.         IConnectionPointContainer** CPContainer) ;
  17.     STDMETHOD(Advise)(THIS_ IUnknown* Sink, DWORD* Cookie) ;
  18.     STDMETHOD(Unadvise)(THIS_ DWORD Cookie) ;
  19.     STDMETHOD(EnumConnections)(THIS_ IEnumConnections** EnumConnections) ;
  20.  
  21. private:
  22.     unsigned long     m_RefCount;        // Reference count
  23.     IUnknown*        m_Owner;        // The owner object of this connection point
  24.     IID                m_InterfaceID;    // The interface this connection point is wired to
  25.     LArray*            m_IUnknown;        // List of interfaces that are currently connected
  26.     LArray*            m_Cookies;        // List of Advise cookies of current connections
  27.     DWORD            m_CookieNext;    // Next cookie to assign
  28. };
  29.